/**
 * store/index.js
 */
import Vue from 'vue';
import Vuex from 'vuex';
import createLogger from 'vuex/dist/logger';
import * as actions from '@/store/action';
import app from '@/store/modules/app';

Vue.use(Vuex);

const debug = process.env.NODE_ENV !== 'production';

export default new Vuex.Store({
    actions,
    modules: {
        app
    },
    strict: debug,
    plugins: debug ? [createLogger()] : []
})
